<?php
/**
 * Describe:
 * Source:
 * User: blue
 * Time: 2018/1/31 9:39
 */

namespace aop\validate;


use think\Validate;

class Rule extends Validate
{
    protected $rule=[
        'title'=>'require|token',
        'pid'=>'require'
    ];
    protected $message=[
        'title.require'=>'规则名称必须填写',
        'pid.require'=>'父级规则必须填写'
    ];
    protected $scene=[
        'add'=>['title'],
        'eidt'=>['title,pid']
    ];
}